import request from '@/utils/request'

// 查询试题题库关联列表
export function listQuRepo(query) {
  return request({
    url: '/business/quRepo/list',
    method: 'get',
    params: query
  })
}

// 查询试题题库关联所有列表
export function listAllQuRepo(query) {
  return request({
    url: '/business/quRepo/listAll',
    method: 'get',
    params: query
  })
}

// 查询试题题库关联详细
export function getQuRepo(id) {
  return request({
    url: '/business/quRepo/getInfo/' + id,
    method: 'get'
  })
}

// 新增试题题库关联
export function addQuRepo(data) {
  return request({
    url: '/business/quRepo/add',
    method: 'post',
    data: data
  })
}

// 修改试题题库关联
export function updateQuRepo(data) {
  return request({
    url: '/business/quRepo/edit',
    method: 'post',
    data: data
  })
}

// 删除试题题库关联
export function delQuRepo(id) {
  return request({
    url: '/business/quRepo/remove/' + id,
    method: 'get'
  })
}
